From 8ced7b24e5aee639ac8a3fe2e341bf7610cbe007 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 19 Feb 2011 07:27:27 +0000 Subject: [PATCH] Follow-up r76456: more thorough check for UTF-8 support. Now it checks whether PCRE can actually convert from uppercase to lowercase and vice versa. --- includes/installer/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 3677e786bf..53c19ea87b 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -725,7 +725,7 @@ abstract class Installer { return false; } wfSuppressWarnings(); - $regexd = preg_replace( '/[\x{0400}-\x{04FF}]/u', '', '-АБВГД-' ); + $regexd = preg_replace( '/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-' ); wfRestoreWarnings(); if ( $regexd != '--' ) { $this->showMessage( 'config-pcre-no-utf8' ); -- 2.20.1